# Sets the minimum version of CMake required to build your native library.
# This ensures that a certain set of CMake features is available to
# your build.

cmake_minimum_required(VERSION 3.4.1)

set (ENV{PKG_CONFIG_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/../../dependencies/lv2-desktop/dist/lib/pkgconfig/")

find_package ( PkgConfig REQUIRED )

link_directories(
	"${CMAKE_CURRENT_SOURCE_DIR}/../build/native/androidaudioplugin/"
)

set (aaphostsample_LIBS ${aaphostsample_LIBS})


# Specifies a library name, specifies whether the library is STATIC or
# SHARED, and provides relative paths to the source code. You can
# define multiple libraries by adding multiple add_library() commands,
# and CMake builds them for you. When you build your app, Gradle
# automatically packages shared libraries with your APK.

add_executable(aaphostsample
        "AAPSampleLV2Interop_native.cpp"
        "AAPSampleLV2Interop_desktop.cpp"
        )

target_include_directories(aaphostsample
        PRIVATE
        "../plugin-api/include"
        "../androidaudioplugin/core/include"
        )

target_compile_options(aaphostsample
        PRIVATE
        -std=c++17
        -Wall
        -Wshadow
        )

target_link_libraries(aaphostsample ${aaphostsample-LIBS} androidaudioplugin)

